<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
margin:0; 
padding:0;
list-style: none;
}
    </style>
</head>
<body>
    <div id="result">1</div>
    
</body>
</html>
<script>
    
    function updateElement() {
     var el = document.getElementById("result"),
         style = el.style;
        // 使用el和style干点其他什么事...
        style.height = "20px"
        console.log(style)
}
updateElement()

</script>